<!--#include file="./doctype.html"-->
<title>批量修改文章-<%=siteTitle%>-后台管理</title>
</head><body>
<div class="wrap">
	<ol class="breadcrumb">
		<li><a href="<%=fileName%>?q=index">列表首页</a></li>
		<li class="active"><a href="javascript:;" class="reload">批量修改</a></li>
	</ol>
	<form method="post" action="<%=fileName%>?q=saveBatch" class="mb10" role="form">
		<input type="hidden" name="batchId" value="<%=batchId%>">
        <div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isGenreID" value="1" type="checkbox"> 修改？
            </label>
            <div class="inline w20 genre_id" data-name="genreID" data-id="3"></div>
            <label class="inline control-label" for="genreID">大类选择</label>
        </div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isClassID" value="1" type="checkbox"> 修改？
            </label>
			<div class="inline w20 class_id" data-name="classID" data-id="0"></div>
			<label class="inline control-label" for="classID">栏目</label>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isInfoViewID" value="1" type="checkbox"> 修改？
            </label>
            <div class="inline w30 view_id" data-name="infoViewID" data-id="0"></div>
            <label class="inline control-label" for="infoViewID">使用模板(不选使用默认)</label>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isHits" value="1" type="checkbox"> 修改？
            </label>
            <input id="hits" name="hits" class="form-control inline w30 check_value clean" placeholder="点击数" value="" />
            <label class="inline control-label" for="hits">点击数</label>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isDateTime" value="1" type="checkbox"> 修改？
            </label>
            <input id="dateTime" name="dateTime" class="form-control inline w30 data_time clean" placeholder="时间" value="<%=app.cj_date(now())%>" />
            <label class="inline control-label" for="dateTime">时间</label>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isAuthor" value="1" type="checkbox"> 修改？
            </label>
            <input id="author" name="author" class="form-control inline w30 check_value clean" placeholder="作者" value="<%=siteName%>" />
            <label class="inline control-label" for="author">作者</label>
		</div>
		<div class="form-group fix">
			<label class="btn btn-sm btn-default">
                <input name="isCopyFrom" value="1" type="checkbox"> 修改？
            </label>
            <input id="copyFrom" name="copyFrom" class="form-control inline w30 check_value clean" placeholder="文章来源" value="<%=siteUrl%>" />
            <label class="inline control-label" for="copyFrom">文章来源</label>
		</div>
		<div class="form-group fix text-center submit_box"></div>
	</form>
    <!--#include file="loadTime.html"-->
</div>
<script>
$(document).ready(function() {
    var getData = function(id) {
        var gid = id || $('#genreID').val();
        $('.class_id').getKind({
            url: './ajax.asp?q=getGenreClass',
            data: 'id='+gid,
            type: 'select'
        });
    };
    $('.genre_id').getKind({
        url: './ajax.asp?q=getGenreType',
        data: 'id=3',
        type: 'select',
        callback: function(a) {
            getData($(this).find('select').val())
        }
    });
	$('.view_id').getView();
	$('.data_time').datePicker().on('changeDate', function(e){
	    e.viewMode == 'days' && $(this).datePicker('hide');
	});
$(this)
    .on('change', '.genre_id select', function() {
        getData($(this).val());
    })
	/*.on('submit', 'form', function(){
		return $.submitForm('.check_value');
	})*/
});
</script>
</body>
</html>